<?php

$firstname = $_REQUEST['firstname'] ;
$lastname = $_REQUEST['lastname'] ;
$email = $_REQUEST['email'] ;
$city = $_REQUEST['city'] ;
$state = $_REQUEST['state'] ;
$zip = $_REQUEST['zip'] ;
$rec_updates = $_REQUEST['rec_updates'] ;
$over_18 = $_REQUEST['over_18'] ;

//add you email below to have form submitted to you
$send_email = "email@example.com";

  mail( $send_email, "subPages Updates Signup", "Firstname: $firstname\nLastname: $lastname\nEmail: $email\nCity: $city\nState: $state\nZip: $zip\nI would like to receive updates on new measurements being used to drive advancements, plus a free Dialog Tool. Please read the Privacy Policy for more information: $rec_updates\nI certify that I am 18 years if age or older: $over_18\n", "From: $email" );
  header( "Location: /updates-thanks" );

?>
